#include <iostream>

int main(int argc, char** argv)
{
	int a, b;
	std::cin >> a >> b;
	int lower = a > b ? b : a;
	int higher = lower == a ? b : a;
	
	while(lower <= higher) {
		std::cout << lower << " ";
		lower++;
	}
	std::cout << std::endl;

	return 0;
}
